package com.yxc.plan.wolf.domain.repository;

import com.yxc.plan.wolf.domain.Device;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;


/**
* @Description : 
* @Author      : abc@vanke.com
* @Date        : 2018-12-17 19:23
*/
@Repository
public interface DeviceRepository extends JpaRepository<Device, Long>, JpaSpecificationExecutor<Device> {

    Page<Device> findByDeletedAndProjectId(Boolean deleted, Long projectId, Pageable pageable);

}
